/********************************
 * @FileName:     ResponseMessage.java
 * @Description:  ResponseMessage.java -
 * @Copyright:    Copyright(C) 2010-2011 mbool.com
 * @Company       MBOOL-TEAM zhangjiayi LTD.
 * @author:       zhangjiayi
 * @version       V1.0 
 * @Createdate:   2016-5-11 下午1:01:38
 *
 * All rights Reserved, Designed By MBOOL-TEAM
 *
 * Modification  History:
 * Date         Author        Version        Discription
 * -----------------------------------------------------------------------------------
 * 2016-5-11       zhangjiayi       1.0         TODO
 * Why & What is modified: <修改原因描述>
 *
 ********************************/
package com.rowline.admin.module.util.domain;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName:     ResponseMessage
 * @Description:   TODO(这里用一句话描述这个类的作用)
 * @author:        zhangjiayi
 * @date:          2016-5-11 下午1:01:38
 *
 */
@Data
public class ResponseMessage {
	
	/**
	 * 是否操作成功
	 */
	private Boolean isSuccess = true;
	/**
	 * 错误编码
	 */
	private String responseCode ;
	/**
	 * 提示信息
	 */
	private String message;
	/**
	 * 响应数据对象
	 */
	private Object data ;
	
	private Map<String,Object> dataMap =new HashMap<String,Object>();
	
	/**
	 * 下一步跳转的url
	 */
	private String nextUrl;
	
	public ResponseMessage(boolean status, String message) {
		super();
		this.isSuccess = status;
		this.message = message;
	}
	public ResponseMessage() {
		super();
	}
	
	public ResponseMessage(Object data) {
		super();
		this.data = data;
	}
	
	public ResponseMessage putData(String key,Object value){
		dataMap.put(key, value);
		return this;
	}
	
}
